<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

class FinanceBranchBill extends Model
{
    protected $guarded=[];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format('Y/m/d H:i:s');
    }

    public function customerBill(){
        return $this->belongsTo(FinanceCustomerBill::class,'customer_bill_id');
    }

    public function billDetail(){
        return $this->hasMany(FinanceBranchDetailBill::class,'branch_bill_id');
    }


}
